home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2001 May
/
SGI Freeware 2001 May - Disc 3.iso
/
dist
/
fw_squid.idb
/
etc
/
init.d
/
squid.z
/
squid
Wrap
Text File
|
2000-04-13
|
652b
|
46 lines
#!/bin/sh
#
# Startup script for squid
#
# $Id: squid,v 1.5 1998/11/18 10:56:56 achimg Exp $
# (c) 2000 SGI/Achim Gorski <gorski@sgi.com>
prefix=/usr/freeware/squid
exec_prefix=${prefix}
PATH=${exec_prefix}/bin:/bin:/usr/bin
export PATH
CONFIG=/etc/config
IS_ON=/etc/chkconfig
if $IS_ON verbose ; then
ECHO=echo
else # For a quiet startup and shutdown
ECHO=:
fi
case "$1" in
'stop')
if $IS_ON squid ; then
$ECHO 'Stopping squid.'
squid -k shutdown
sleep 10
$ECHO
fi
;;
'start')
if $IS_ON squid ; then
$ECHO 'Starting squid.'
RunCache.socks5 &
$ECHO
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
exit 0